﻿@{
    ViewBag.Title = "SAdPriceUnite";
}
@section scripts
{
        <script src="@Url.Content("~/Scripts/shared/share.js")" type="text/javascript"></script> 
        <script src="@Url.Content("~/Scripts/shared/shown.js")" type="text/javascript"></script> 

        <style type="text/css">
    html, body
    {
        font-size:12px;
        padding:0;
        margin:0;
        border:0;
        height:100%;
        overflow:hidden;
    }
        .mini-hidden
        {
            width: 31px;
        }
        .style4
        {
            height: 31px;
            text-align: center;
        }
        .style5
        {
            height: 34px;
        }
        .style6
        {
            height: 70px;
        }
        .style7
        {
            height: 37px;
        }
        .auto-style5 {
            height: 31px;
            width: 30px;
        }
        .auto-style9 {
            height: 31px;
            width: 77px;
        }
        .auto-style26 {
            width: 114px;
            height: 48px;
        }
        .auto-style27 {
            height: 48px;
        }
        .auto-style28 {
            height: 16px;
            width: 53px;
        }
        .auto-style29 {
            height: 31px;
            text-align: center;
            width: 53px;
        }
        .auto-style30 {
            height: 16px;
            width: 135px;
        }
        .auto-style31 {
            height: 16px;
            width: 30px;
        }
        .auto-style32 {
            height: 16px;
            }
        .auto-style33 {
            height: 31px;
            text-align: center;
            width: 135px;
        }
        </style>
  
}
<form method="post" id="form1">

<table>
        <tr>
            <td class="auto-style31">
                &nbsp;</td>
            <td align="right" class="auto-style32">
                &nbsp;</td>
            <td class="auto-style28">
                        &nbsp;</td>
            <td class="auto-style30">
                        &nbsp;</td>
        </tr>
        <tr>
            <td class="auto-style31">
                &nbsp;</td>
            <td align="right" class="auto-style32" colspan="3">
                提示：统一调价将按设置规则更改调价单的新价。</td>
        </tr>
        <tr>
            <td class="auto-style31">
                </td>
            <td align="right" class="auto-style32">
                </td>
            <td class="auto-style28">
                        </td>
            <td class="auto-style30">
                        </td>
        </tr>
        <tr>
            <td class="auto-style5">
                &nbsp;</td>
            <td align="right" class="auto-style9">
                新价 = 原价 </td>
            <td class="auto-style29">
                <input id="comPriceMode" class="mini-combobox" style="width:50px;" 
                    showNullItem="false" required="true" allowInput="false" value ="0"
                     align="left" data ="comPriceMode"/>
            </td>
            <td class="auto-style33">
                    <input name="FPucPriceCvt" class="mini-spinner" minValue="0" maxValue="99999999" 
                changeOnMousewheel ="false" showbutton="false" increment ="0" style="width:100px;" showbutton="false" value = "0" format="n4"/></td>
        </tr>
        <tr>
            <td class="auto-style5">
                &nbsp;</td>
            <td align="right" class="auto-style9">
                &nbsp;</td>
            <td class="auto-style29">
                    &nbsp;</td>
            <td class="auto-style33">
                    &nbsp;</td>
        </tr>
        </table>
        <table>
            <tr>
                <td class="auto-style26" >
                </td>
                <td class="auto-style27" >
                   <a class="mini-button" onclick="onOk" style="width:70px;margin-right:10px;">确定</a>
                </td>
                <td class="auto-style27" >
                    <a class="mini-button" onclick="onCancel" style="width:70px;margin-right:10px;"" >取消</a>
                </td>
            </tr>
        </table>    
</form>


&nbsp;<script type="text/javascript">

          var comPriceMode = [{ "id": "0", "text": "+" },
                             { "id": "1", "text": "-" },
                             { "id": "2", "text": "*" }]

        mini.parse();

        var form = new mini.Form("form1");

        function FormShown() {
        }

        function GetData() {
            var sdata = form.getData();
            return sdata;
        }

        function onOk() {
            var mid = mini.get("comPriceMode").getValue();
            var mvalue = mini.getbyName("FPucPriceCvt").getValue();
            var sdata = "{\"id\":\"" + mid + "\",\"FUnite\":\"" + mvalue + "\"}";
            CloseWindow(sdata);
        }

        function onCancel(e) {
            CloseWindow();
        }

    </script>
